package com.cskaoyan.user.controller;

import com.cskaoyan.mall.commons.result.ResponseData;
import com.cskaoyan.mall.commons.result.ResponseUtil;
import com.cskaoyan.user.form.UserVerifyRequest;
import com.cskaoyan.user.service.IUserRegisterService;
import com.cskaoyan.user.service.impl.UserRegisterServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: MH
 * @Date: 2022-08-25 23:00
 * @Description: 用户激活的实现
 */
@RestController
@RequestMapping("user")
public class VerifyVontroller {

    @Autowired
    UserRegisterServiceImpl userRegisterService;

    @RequestMapping("verify")
    public ResponseData verify(UserVerifyRequest request) {
        userRegisterService.verify(request);
        return new ResponseUtil().setData(null);
    }
}
